# -*- coding: utf-8 -*-
from odoo import models, api, fields, tools
from odoo.exceptions import UserError
import re


class crop(models.Model):

    _name = "datcent.crop"
    _description = "作物"
    _table = "datcent_crop"
    _order = "sequence"

    sequence = fields.Integer(string="排序",translate = 0)
    name = fields.Char(string="作物名称",translate = 0)
    crop_category_id = fields.Many2one(string="作物类别",comodel_name = 'datcent.crop_category',translate = 0)
    family_genus_id = fields.Many2one(string="科属种",comodel_name = 'datcent.family_genus',translate = 0)
    detail_contents = fields.Html(string="详细说明",translate = 0)
